<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue直接引入Script资源</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <div>{{ message }}</div>
    <div v-once>{{ message }}</div>
    <div v-html="message"></div>

    <div>{{ msgHtml }}</div>
    <div v-html="msgHtml"></div>
</div>
<script>
    new Vue({
        el: "#app",
        data() {
            return {
                message: "hello vue",
                msgHtml: "<p style='color: red'> red vue</p>"
            };
        },
        created() {
            this.message = "created message";
        },
        // beforeMount() {
        //     this.message = "beforeMount message";
        // },
        mounted() {
            this.message = "mounted message";
        }
    })
</script>
</body>
</html>